<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ page contentType="text/html;charset=UTF-8" language="java" pageEncoding="UTF-8" %>
<html>
<head>
    <title>地铁线路及修复</title>
</head>
<body>
<c:import url="/WEB-INF/jsp/include/header.jsp"/>
<form>

    城市:
    <select name="city">
        <option value="上海市">上海市</option>
        <c:forEach var="city" items="${baiduMetorCity}">
            <option value="${city.key}" <c:if test="${param.city eq city.key}">selected="selected"</c:if>>
                    ${city.key}
            </option>
        </c:forEach>
    </select>


    线路 <input name="lineName" value="${param.lineName}<c:if test="${empty param.lineName}">地铁9号线</c:if>">

    功能
    <select name="feature">
        <option value="">查看原始数据</option>
        <c:if test="${not empty param.lineName}">
            <option value="1" <c:if test="${param.feature eq 1}">selected="selected"</c:if>>手动数据修复</option>
        </c:if>
        <c:if test="${empty metroPoint and empty param.lineName}">
            <option value="2" <c:if test="${param.feature eq 2}">selected="selected"</c:if>>抓取该城市</option>
        </c:if>
        <option value="3">抓取经纬度</option>
    </select>
    <input type="submit"> （选择城市输入具体的地铁线路，在地图上打点进行修复）
</form>
<table border="1">
    <thead>
    <tr>
        <td>NO.</td>
        <td>城市名称</td>
        <td>地铁线路名称</td>
        <td>地铁站点唯一ID</td>
        <td>IS_PRACTICAL</td>
        <td>站点名称</td>
        <td>经度</td>
        <td>纬度</td>
    </tr>
    </thead>
    <tbody>

    <c:forEach var="point" items="${metroPoint}" varStatus="status">
        <tr>
            <td>${status.index + 1}</td>
            <td>${point.cityName}</td>
            <td>${point.lineName}</td>
            <td>${point.uid}</td>
            <td>${point.isPractical}</td>
            <td>${point.name}</td>
            <td>${point.lng}</td>
            <td>${point.lat}</td>
        </tr>
    </c:forEach>
    </tbody>
</table>

</body>
</html>
